HR - Timesheets - REST API icon

HR - Timesheets - REST API

(0 reviews)

Spec - Timesheets IN - REST API

The REST Timesheets IN API allows you to send timesheets into Codex :

Request to send timesheets data to the ERP

POST /rest/v2/hr/timesheets

Security

This API is secured by client_id/client_secret. These parameters are to add in the headers of your call:

 - client_id: {client_id provided by Dali}
 - client_secret: {client_secret provided by Dali}

Example

{
  "data": {
    "correlationId": "",
    "companyCode": "",
    "sourceSystem": "",
    "timesheets": [
      {
        "employeeId": "Codex employee ID",
        "workDate": "Work date",
        "timesheetType": "Type of timesheet",
        "projectId": "ID of project",
        "timesheetTypeCode": "Type code of the timesheet",
        "wageType": "Type of wage",
        "numberHours": "Number of hours",
        "startTime": "Timesheet start time",
        "endTime": "Timesheet end time",
        "interventionLabel": "Label of intervention",
        "description": "Description",
        "craftCode": "craft code",
        "wageQuantity": "Quantity of wage",
        "wageAmount": "Amount of wage",
        "comment": "Comment",
        "numberOfKilometers": ""
      }
    ]
  }
}

Response of the API

If the request is OK: HTTPS status will be 200

{
  "header": {
    "apiName": "s-api-myAPI",
    "apiVersion": "1.0",
    "correlationId": "ab7cdcd7-b71a-4554-87e8-61bdea42ab28"
  },
  "data": {
    "message": "The request payload is correct,DALI is starting the process."
  },
  "error": {}
}

If the request is KO: HTTPS status will be 500

The E2E Mapping is to be found in our HELP Page.


Reviews